package cn.jiangjiesheng.bootstrap.filestore.dto;

import java.util.LinkedHashMap;

/**
 * 文件结果
 * <p>
 * Created by dev@jiangjiesheng.cn on 2021/7/9  <br/>
 */
public class ResultMap extends LinkedHashMap<String, Object> {

    /**
     * 获取第一个值
     *
     * @return
     */
    public String firstValueAsString() {
        if (this.isEmpty()) {
            throw new RuntimeException("result map is empty.");
        }
        return this.values().toArray()[0].toString();
    }

}
